package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.bdmc.common.annotation.FieldMeta;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 报警屏蔽设置 实体
 * </p>
 *
 * @author 黄露
 * @since 2020-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
// "DeviceAlarmSetting对象", description = "报警屏蔽设置")
public class DeviceAlarmSetting extends Model<DeviceAlarmSetting> {

    private static final long serialVersionUID = 1L;

    // "报警设置id")
    @TableId(value = "alarm_setting_id", type = IdType.AUTO)
    private Integer alarmSettingId;

    // "排序")
    private Integer orderAsc;

    // "设备型号名称")
    private String devName;

    // "报警名称")
    private String alarmName;

    // "报警代码")
    private String alarmCode;

    // "报警等级")
    private String alarmLevel;

    // "是否屏蔽报警")
    @FieldMeta(name = "是否屏蔽报警,1屏蔽", description = "是否屏蔽报警,1屏蔽")
    private boolean enabled;

    // "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    // "创建人")
    private String createBy;

    @Override
    public Serializable pkVal() {
        return this.alarmSettingId;
    }

}
